package com.maibow.util.weixin;

/**
 * 常量
 * 
 * @author herosky
 *
 */
public class WeixinConstants {
    /**
     * CHUXIAN_PARTY_APPID
     */
    public static String CHUXIAN_PARTY_APPID = "";

    /**
     * CHUXIAN_PARTY_SECRET
     */
    public static String CHUXIAN_PARTY_SECRET = "";

    /**
     * KEY
     */
    public static String CHUXIAN_PARTY_API_KEY = "";

    /**
     * 商户ID
     */
    public static String CHUXIAN_PARTY_MCH_ID = "";

    /*************************************************/

    /**
     * APPID
     */
    public static String BANMIAN_APPID = "";

    /**
     * SECRET
     */
    public static String BANMIAN_SECRET = "";

    /**
     * KEY
     */
    public static String BANMIAN_API_KEY = "";

    /**
     * 商户ID
     */
    public static String BANMIAN_MCH_ID = "";

    /*************************************************/
    
    /**
     * 获取ACCESS_TOKEN接口
     */
    public static String GET_ACCESSTOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=CHUXIAN_PARTY_APPID&secret=APPSECRET";

    /**
     * 获取OPENID接口
     */
    public static String GET_OPENID_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=CHUXIAN_PARTY_APPID&secret=APPSECRET&code=CODE&grant_type=authorization_code";

    /**
     * 获取用户信息接口
     */
    public static String GET_USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESSTOKEN&openid=OPENID&lang=zh_CN";

    /**
     * 获取微信ticket
     */
    public static String GET_WEIXINTICKET_URL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

    /**
     * ACCESS_TOKEN有效时间(单位：ms)
     */
    public static int EFFECTIVE_TIME = 700000;

    /**
     * conf.properties文件路径
     */
    // public static String CONF_PROPERTIES_PATH =
    // "src/main/conf/resources/config.properties";
    public static String CONF_PROPERTIES_PATH = "conf/config.properties";

    /**
     * 微信接入token ，用于验证微信接口
     */
    public static String TOKEN = "abc123";

    /**
     * 
     */
    public static String SEND_RED_PACK_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack";

    /**
     * 二维码ticket
     */
    public static String GET_WEIXINTICKET_QRCODE_URL = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";

    /**
     * 二维码
     */
    public static String GET_WEIXIN_QRCODE_URL = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=TICKET";

    /**
     * 创建菜单
     */
    public static String GET_WEIXIN_CREATE_MENU_URL = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

    /**
     * 删除菜单
     */
    public static String GET_WEIXIN_DELETE_MENU_URL = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";

}
